from sampler import *
import sys

sys.append("../")

data = np.array( range(0,300), dtype=np.float64 )
data.shape = (30,10)

s = Sampler( 2, np.array( [1,2], dtype=np.uint32 ), np.array( [4,8], dtype=np.uint32 ) )

xres = s.getXRes( data )
yres = s.getYRes( data )
zres = s.nbSamples()

result = np.zeros( ( xres, yres, zres ) )

s.get_image( data, result )

print result
